#!/usr/bin/python3
fname = '/usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/config/main.xml'

inp = open(fname, 'r')
output = []
iconSizeFlag = False
for line in inp:
    if '<entry name="iconSize"' in line:
        iconSizeFlag = True
    if '</entry>' in line:
        iconSizeFlag = False
    if iconSizeFlag and '<default>' in line:
        output.append('      <default>5</default>\n')
    else:
        output.append(line)
inp.close()
out = open(fname, 'w')
print(*output, sep='', file=out)
out.close()
